package com.qing.springboot01.service.impl;

import com.qing.springboot01.entity.AddressBook;
import com.qing.springboot01.mapper.AddressBookMapper;
import com.qing.springboot01.service.AddressBookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author tina
 * @since 2023-06-26 04:09:20
 */
@Service
public class AddressBookServiceImpl extends ServiceImpl<AddressBookMapper, AddressBook> implements AddressBookService {

        @Autowired
    private AddressBookMapper addressBookMapper;

    @Override
    public int deleteById(Long ids) {
        if(addressBookMapper.deleteById(ids)>0){
            return 1;
        }
        return 0;
    }
}
